<template>
  <div id="ph">
    <h1 id="bt">房地产排行榜</h1>


    <div class="top-10">
      <div>
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="热评楼盘" name="first" @click=""></el-tab-pane>
          <el-tab-pane label="热门楼盘" name="second"></el-tab-pane>
          <el-tab-pane label="直播人气榜" name="third"></el-tab-pane>
        </el-tabs>
      </div>
      <ul v-show="true">
        <li>
          <a href="">
            <span>中海丽春湖墅</span>
            <span>
              <el-rate v-model="value" disabled show-score text-color="#ff9900" score-template="{value}">
              </el-rate>
            </span>
            <span>1218条</span>
          </a>
        </li>
        <li><a href="">02</a></li>
        <li><a href="">03</a></li>
        <li><a href="">04</a></li>
        <li><a href="">05</a></li>
        <li><a href="">06</a></li>
        <li><a href="">07</a></li>
        <li><a href="">08</a></li>
      </ul>
    </div>
    <div class="top-10">
      <div>
        <el-tabs v-model="activeNames" @tab-click="handleClick">
          <el-tab-pane label="热评楼盘" name="first2"></el-tab-pane>
          <el-tab-pane label="热门楼盘" name="second2"></el-tab-pane>
          <el-tab-pane label="直播人气榜" name="third2"></el-tab-pane>
        </el-tabs>
      </div>
      <ul>
        <li><a href="">01</a></li>
        <li><a href="">02</a></li>
        <li><a href="">03</a></li>
        <li><a href="">04</a></li>
        <li><a href="">05</a></li>
        <li><a href="">06</a></li>
        <li><a href="">07</a></li>
        <li><a href="">08</a></li>
      </ul>
    </div>
    <div class="top-10">
      <div>
        <el-tabs v-model="activeNamess" @tab-click="handleClick">
          <el-tab-pane label="热评楼盘" name="first3"></el-tab-pane>
          <el-tab-pane label="热门楼盘" name="second3"></el-tab-pane>
          <el-tab-pane label="直播人气榜" name="third3"></el-tab-pane>
        </el-tabs>
      </div>
      <ul>
        <li><a href="">01</a></li>
        <li><a href="">02</a></li>
        <li><a href="">03</a></li>
        <li><a href="">04</a></li>
        <li><a href="">05</a></li>
        <li><a href="">06</a></li>
        <li><a href="">07</a></li>
        <li><a href="">08</a></li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        activeName: 'first',
        activeNames: 'first2',
        activeNamess: 'first3',
        value:4.5
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>
s
<style scoped="scoped">
  #ph {
    width: 1510px;
    margin: 0 sauto;
    margin-top: -450px;
  }

  #bt {
    width: 1300px;
    margin-left: 105px;
    height: 50px;
    background: #666666;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: -100px;
    margin-top: 30%;
  }

  a {
    color: black;
    text-decoration: none;
  }

  li:hover {
    background: gray;
    color: red;
  }

  < !-- div 大小设定 -->.top-10 {
    display: inline-block;
  }

  .top-10 {
    display: inline-block;
    width: 350px;
    margin-top: 106px;
    margin-left: 118px;
    background: #fff;
    /* border: 1px solid #FFF; */
    box-shadow: #d0d0d0 1px 1px 10px 0px;
    margin-bottom: 100px;
  }

  .top-10 ul {
    counter-reset: section;
  }

  .top-10 li {
    width: 300px;
    border-bottom: 1px solid #b8c2cc;
    line-height: 46px;
    height: 46px;
    overflow: hidden;
    color: #525C66;
    font-size: 12px;

  }

  .top-10 li:before {
    counter-increment: section;
    content: counter(section);
    display: inline-block;
    padding: 0 12px;
    margin-right: 10px;
    height: 18px;
    line-height: 18px;
    background: #b8c2cc;
    color: #fff;
    border-radius: 3px;
    font-size: 9px
  }

  < !-- 排名前三名颜色控制 -->.top-10 li:nth-child(1):before {
    background: #0164b4
  }

  .top-10 li:nth-child(2):before {
    background: #0164b4
  }

  .top-10 li:nth-child(3):before {
    background: #0164b4
  }
</style>
